<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>

<body>
    <div id="app">
        <p v-if="bool1">111</p>
        <p style="display: none;">222</p>
        <hr>
        <p v-if="bool2">333</p>
        <p v-else>444</p>
        <hr>
        <p v-if="type==1">555</p>
        <p v-else-if="type==2">666</p>
        <p v-else>777</p>
        <hr>

        <p v-show="bool3">888</p>

    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                bool1: false,
                bool2: false,
                type: 1,
                bool3: false,
            }
        })
    </script>
</body>

</html>